count pairs whose sum present in the array in java 2019